//
//  ViewController.m
//  11-UI
//
//  Created by Snow on 16/7/28.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIView *backgroundView;

@property (weak, nonatomic) IBOutlet UIButton *buttonOfLogin;
@property (weak, nonatomic) IBOutlet UIButton *buttonOfBack;
@property (weak, nonatomic) IBOutlet UIView *viewOfBack;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.backgroundView.layer.masksToBounds = YES;
    self.backgroundView.layer.cornerRadius = 5;
   
    self.buttonOfLogin.backgroundColor = [UIColor colorWithRed:0.035 green:0.749 blue:0.443 alpha:1.000];
    
    self.buttonOfBack.layer.masksToBounds = YES;
    self.buttonOfBack.layer.borderWidth = 1;
    self.buttonOfBack.layer.borderColor = [[UIColor colorWithRed:0.035 green:0.749 blue:0.443 alpha:1.000] CGColor];
    [self.buttonOfLogin addTarget:self action:@selector(handleLogin:) forControlEvents:UIControlEventTouchUpInside];
    [self.buttonOfBack addTarget:self action:@selector(hanleBack:) forControlEvents:UIControlEventTouchUpInside];
    
}
- (IBAction)buttonOfMiss:(id)sender {
    
    
}
- (IBAction)buttonOfBack:(id)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}
- (void)handleContract:(UIButton *)button
{
    NSLog(@"开始阅读拉勾协议");
}
- (void)handleLogin:(UIButton *)button
{
    NSLog(@"登录");
}
- (void)hanleBack:(UIButton *)button
{
    NSLog(@"返回登录");
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
